import FormItemModel from "@/components-sys/base-form/model/form-item.model";

/*表单配置模型*/
export default class BaseFormOptionModel {

    // 对齐方式
    public labelAlign?: 'left' | 'right' | 'top';

    // label宽度
    public labelWidth?: string;

    // 是否占行
    public inline?: boolean;

    /*form-item配置项*/
    public formItem: FormItemModel[];

    constructor(labelAlign: 'left' | 'right' | 'top' = 'top', inline = false) {
        this.labelAlign = labelAlign;
        this.inline = inline;
    }
}
